import jieba
from jieba.analyse import TextRank

other_policy_all_word = open("2018_policy_all_word.txt", "r",
                             encoding="utf-8")
other_text_rank = TextRank()
for i in other_policy_all_word.readlines():
    print(i)
    # 使用TextRank算法从句子中提取关键词。
    other_text_rank_result = other_text_rank.textrank(i)
    print(other_text_rank_result)
